/**
 * Created by Administrator on 2017/10/17.
 */

//方式二,设置分类的数据模型
var mongoose = require('mongoose');
//连接插件
var meterializePlugin = require('mongoose-materialized');

var schema = mongoose.Schema;//调用模块方法,建立数据模型
var schema= new mongoose.Schema({
    text:String,
});

schema.plugin(meterializePlugin);//调用分页插件
var Cate=mongoose.model("Cate",schema,"cate")
module.exports=Cate;




























